package com.ft.admix.ad;

import android.app.Activity;
import android.content.Context;

import com.ft.admix.base.AdListener;
import com.ft.admix.base.BaseAd;
import com.ft.admix.config.AdConfig;
import com.ft.admix.model.MixRewardItem;
import com.ft.admix.utils.AdUtils;

public abstract class MixCustomRewardVideoAdapter extends BaseAd {
    protected String userId; // 用户标识
    protected String rewardName; // 奖励名称
    protected int rewardAmount; // 奖励数量

    @Override
    public void load(Activity context, AdConfig config) {
        this.config = config;
        this.context = context;
        loadNetworkAd(context, config);
    }

    @Override
    public void destroy() {
        listener = null;
        config = null;
        userId = null;
        rewardName = null;
        isLoaded = false;
    }

    protected abstract void loadNetworkAd(Activity context, AdConfig config);

    public abstract void show(Activity activity);

    public void callRewardVideoAdClick(){

    }

    public void callRewardVideoAdClose(){

    }

    public void callRewardVideoError(){

    }

    public void callRewardVideoComplete(){}

    public boolean isClientBidding(){
        if (config!=null){
            //配置加入是否客户端竞价标识
            return false;
        }
        return false;
    }

    public void callRewardVideoAdShow(){

    }

    public void callRewardVideoAdSkipped(){

    }

    public void callRewardVideoRewardVerify(MixRewardItem rewardItem){

    }

}